package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.WaterChannelAlarmLogDao;
import wqh.domain.WaterChannelAlarmLog;
import wqh.service.WaterChannelAlarmLogService;

import java.util.List;

/**
 * Created by wqh on 2017/1/14.
 */
@Service("waterChannelAlarmLogService")
public class WaterChannelAlarmLogServiceImpl implements WaterChannelAlarmLogService {

    @Autowired
    private WaterChannelAlarmLogDao dao;

    @Override
    public void save(WaterChannelAlarmLog entity) {
        this.dao.save(entity);
    }

    @Override
    public void update(WaterChannelAlarmLog entity) {
        this.dao.update(entity);
    }

    @Override
    public void delete(WaterChannelAlarmLog entity) {
        this.dao.delete(entity);
    }

    @Override
    public void deleteAll() {
        this.dao.deleteAll();
    }

    @Override
    public List<WaterChannelAlarmLog> findAll() {
        return this.dao.findAll();
    }

    @Override
    public WaterChannelAlarmLog findById(Long id) {
        return this.dao.findById(id);
    }

    @Override
    public Long countByTimeRange(Integer start, Integer end) {
        return dao.countByTimeRange(start, end);
    }
}
